package creator.ui.controller;

import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import javax.swing.JFrame;

public class InternalFrom extends JFrame {

  private static final long serialVersionUID = -4401742113848740869L;

  public InternalFrom() {
    getContentPane().setBackground(Color.BLACK);
    setDefaultCloseOperation(3);
    setResizable(false);
  }

  public void cancelMaximize() {
    setResizable(false);
  }

  public void cancelBorder() {
    setUndecorated(true);
  }

  public void setWideHigh(int width, int height) {
    setBounds(
      (int) (Processor.DIM.getWidth() / 2.0D - width / 2),
      (int) (Processor.DIM.getHeight() / 2.0D - height / 2),
      width,
      height
    );
  }
}
